<div class="row" style="margin-top: -1px;">
	<div class="col-md-12">
		<table class="table table-bordered" style="border: none;">
			<tr>
				<th colspan="4" class="text-center" style="border-top: none;">
					<h3>${data.name}</h3>
					<small>[No.] ${data.no}</small>
					<h5>
						<b class="text-danger">${data.status.value}</b>
					</h5>
				</th>
			</tr>
			<#if roles.htglzz || roles.scbld>
			<tr>
				<td class="text-center" width="115">
					<b>签订日期</b>
				</td>
				<td>${data.signDate?string('yyyy-MM-dd')}</td>
				<td class="text-center" width="115">
					<b>办结日期</b>
				</td>
				<td>${data.bjTime?string('yyyy-MM-dd')}</td>
			</tr>
			</#if>
			<tr>
				<td class="text-center" width="115">
					<b>建设单位</b>
				</td>
				<td>${data.companyA}</td>
				<td class="text-center" width="115">
					<b>承建单位</b>
				</td>
				<td>${data.companyB}</td>
			</tr>
			<tr>
				<td class="text-center" width="115">
					<b>合同金额</b>
				</td>
				<td width="350">${(data.priceString)!'-'}</td>
				<td class="text-center" width="115">
					<b>合同工期</b>
				</td>
				<td>${(data.contractStart?string("yyyy-MM-dd")+' 至 '+data.contractEnd?string("yyyy-MM-dd"))!''}${data.contractDays+' 天'}</td>
			</tr>
			<tr>
				<td class="text-center" width="115">
					<b>结算方式</b>
				</td>
				<td colspan="3">${data.jiesuanWay}</td>
			</tr>
			<tr>
				<td class="text-center" width="115">
					<b>付款方式</b>
				</td>
				<td colspan="3">${data.fukuanWay}</td>
			</tr>
			<tr>
				<td class="text-center" width="115">
					<b>工程内容</b>
				</td>
				<td colspan="3">${data.mainContent}</td>
			</tr>
			<tr>
				<td class="text-center" width="115">
					<b>承包范围</b>
				</td>
				<td colspan="3">${data.chengbaoFanwei}</td>
			</tr>
			<tr>
				<td colspan="4"></td>
			</tr>
			<#if roles.shengjiPeople || roles.gongsiLeader>
			<tr>
				<td class="text-center" width="115">
					<b>项目负责人</b>
				</td>
				<td>${data.xiangmuHeader.name!'-'}</td>
				<td class="text-center" width="115">
					<b>技经负责人</b>
				</td>
				<td>${data.jijingHeader.name!'-'}</td>
			</tr>
			<tr>
				<td class="text-center" width="115">
					<b>实际工期</b>
				</td>
				<td colspan="3">
					${(data.start?string('yyyy-MM-dd'))!'&lt;未知&gt;'}&nbsp;至&nbsp;${(data.end?string('yyyy-MM-dd'))!'&lt;未知&gt;'}
					<#if data.projecttimeChangeLog??>
					<a href="javascript:;" class="icon-list-alt projecttime-logs text-primary"></a>
					<div class="projecttime-chang-info hidden">
						<small>
							<table class="table table-hover table-striped margin-0" width="100%">
								<thead>
									<tr class="bg-primary">
										<th class="text-center" width="190">操作人员</th>
										<th class="">变更事由</th>
									</tr>
								</thead>
								<#list data.projecttimeChangeLog as log>
								<tr>
									<td class="text-center">${log.oper}<br>${log.time}</td>
									<td style="word-break: break-all;">${(log.remark?replace('\n','<br>'))!''}</td>
								</tr>
								</#list>
							</table>
						</small>
					</div>
					</#if>
				</td>
			</tr>
			<tr>
				<td class="text-center" width="115">
					<b>结算金额</b>
				</td>
				<td>${(data.clearingPrice?string('currency'))!(0?string('currency'))}（元）</td>
				<td class="text-center" width="115">
					<b>质保金</b>
				</td>
				<td>${((data.zbMoney.total!0)?string('currency'))!''}（元） <#include "app/contract/btn-of-back-money/contract-zb-money.ftl"></td>
			</tr>
			<tr>
				<td class="text-center" width="115">
					<b>预付款保函</b>
				</td>
				<td>${((data.yfMoney.total!0)?string('currency'))!''}（元） <#include "app/contract/btn-of-back-money/contract-yf-money.ftl"></td>
				<td class="text-center" width="115">
					<b>履约保函</b>
				</td>
				<td>${((data.lyMoney.total!0)?string('currency'))!''}（元） <#include "app/contract/btn-of-back-money/contract-ly-money.ftl"></td>
			</tr>
			<tr>
				<td colspan="4"></td>
			</tr>
			<tr>
				<td class="text-center" width="115">
					<b>开票情况</b>
				</td>
				<td colspan="3">${data.invoiceStatus!'-'}</td>
			</tr>
			</#if>
			<tr>
				<td class="text-center" width="115">
					<b>备注</b>
				</td>
				<td colspan="3">${data.remark!'-'}</td>
			</tr>
		</table>
	</div>
</div>

<div class="row bid-files">
	<!-- 合同文件 -->
	<#if data.contractFile??>
	<div class="col-md-6 file-item" style="height: 82px;">
		<table style="margin: 15px 0;">
			<tr height="50">
				<td class="text-center" width="75">
					<i class="icon-copy icon-2x text-success"></i>
					<br>
					<b class="text-success">
						<small>[合同文件]</small>
					</b>
				</td>
				<td>
					<a href="${request.contextPath}/viewer/1/${data.contractFile.id}" target="_blank"> ${data.contractFile.fileName}${data.contractFile.suffix} </a>
					<div>
						<small style="margin-right: 10px;">${data.contractFile.uploadTime?string('yyyy-MM-dd HH:mm:ss')}</small>
						<small>[${data.contractFile.fileSizeString}]</small>
					</div>
				</td>
				<#if roles.canRemoveFile>
				<td class="text-center" width="50">
					<a href="javascript:void(0);" title="删除文件" target="_blank" class="remove-contract-file" data-id="${data.contractFile.id}" data-contract-id="${data.id}">
						<i class="icon-remove text-danger"></i>
					</a>
				</td>
				</#if>
			</tr>
		</table>
	</div>
	<#elseif roles.canUploadContractFile>
	<div class="col-md-6 file-item" style="height: 82px;">
		<table style="margin: 15px 0; width: 100%;">
			<tr height="50">
				<td class="text-center" width="75">
					<i class="icon-copy icon-2x text-success"></i>
					<br>
					<b class="text-success">
						<small>[合同文件]</small>
					</b>
				</td>
				<td class="text-center common-file-upload" data-file-type="F200_CONTRACT_FILE" data-contract-id="${data.id}" data-suffix=".pdf, .jpeg, .jpg" style="border: 1px dashed #929292; color: #929292; font-size: 20px; cursor: pointer;">
					<i class="icon-upload icon-large"></i>
					添加
				</td>
			</tr>
		</table>
	</div>
	</#if>

	<!-- 竣工资料 -->
	<#if data.jgFile??>
	<div class="col-md-6 file-item" style="height: 82px;">
		<table style="margin: 15px 0;">
			<tr height="50">
				<td class="text-center" width="75">
					<i class="icon-copy icon-2x text-success"></i>
					<br>
					<b class="text-success">
						<small>[竣工资料]</small>
					</b>
				</td>
				<td>
					<a href="${request.contextPath}/download/${data.jgFile.filePathForUrl}/${((data.jgFile.fileName+data.jgFile.suffix)?url)?url}" target="_blank"> ${data.jgFile.fileName}${data.jgFile.suffix} </a>
					<div>
						<small style="margin-right: 10px;">${data.jgFile.uploadTime?string('yyyy-MM-dd HH:mm:ss')}</small>
						<small>[${data.jgFile.fileSizeString}]</small>
					</div>
				</td>
				<#if roles.canRemoveFile>
				<td class="text-center" width="50">
					<a href="javascript:void(0);" title="删除文件" target="_blank" class="remove-contract-file" data-id="${data.jgFile.id}" data-contract-id="${data.id}">
						<i class="icon-remove text-danger"></i>
					</a>
				</td>
				</#if>
			</tr>
		</table>
	</div>
	<#elseif roles.canUploadJungongFile>
	<div class="col-md-6 file-item" style="height: 82px;">
		<table style="margin: 15px 0; width: 100%;">
			<tr height="50">
				<td class="text-center" width="75">
					<i class="icon-copy icon-2x text-success"></i>
					<br>
					<b class="text-success">
						<small>[竣工资料]</small>
					</b>
				</td>
				<td class="text-center common-file-upload" data-file-type="F201_CONTRACT_COMPLETE_FILE" data-contract-id="${data.id}" data-suffix=".rar, .zip" style="border: 1px dashed #929292; color: #929292; font-size: 20px; cursor: pointer;">
					<i class="icon-upload icon-large"></i>
					添加
				</td>
			</tr>
		</table>
	</div>
	</#if>

	<!-- 附件资料 -->
	<#if data.otherFiles??> 
	<#list data.otherFiles as f>
	<div class="col-md-6 file-item" style="height: 82px;">
		<table style="margin: 15px 0;">
			<tr>
				<td class="text-center" width="75">
					<i class="icon-copy icon-2x text-success"></i>
					<br>
					<b class="text-success">
						<small>[${f.type.value}]</small>
					</b>
				</td>
				<td>
					<a href="${request.contextPath}/download/${f.filePathForUrl}/${((f.fileName+f.suffix)?url)?url}" target="_blank"> ${f.fileName}${f.suffix} </a>
					<div>
						<small style="margin-right: 10px;">${f.uploadTime?string('yyyy-MM-dd HH:mm:ss')}</small>
						<small>[${f.fileSizeString}]</small>
					</div>
				</td>
				<#if roles.canRemoveFile>
				<td class="text-center" width="50">
					<a href="javascript:void(0);" title="删除文件" target="_blank" class="remove-contract-file" data-id="${f.id}" data-contract-id="${data.id}">
						<i class="icon-remove text-danger"></i>
					</a>
				</td>
				</#if>
			</tr>
		</table>
	</div>
	</#list>
	<#elseif roles.canUploadOtherFile>
	<div class="col-md-6 file-item" style="height: 82px;">
		<table style="margin: 15px 0; width: 100%;">
			<tr height="50">
				<td class="text-center" width="75">
					<i class="icon-copy icon-2x text-success"></i>
					<br>
					<b class="text-success">
						<small>[附件资料]</small>
					</b>
				</td>
				<td class="text-center common-file-upload" data-file-type="Z900_OTHER" data-contract-id="${data.id}" data-suffix=".zip, .rar" style="border: 1px dashed #929292; color: #929292; font-size: 20px; cursor: pointer;">
					<i class="icon-upload icon-large"></i>
					添加
				</td>
			</tr>
		</table>
	</div>
	</#if>
</div>